package com.ganzi.manager.model;

import com.baomidou.mybatisplus.annotations.TableName;
import com.ganzi.manager.activiti.model.FormInformation;
import com.ganzi.manager.base.BaseModel;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

@Data
@Builder
@EqualsAndHashCode(callSuper = true)
@TableName("sys_users")
public class User extends BaseModel<FormInformation> {

    private long id;
    private String userName;
    private String passWord;
    private String salt;
    private String random;
    private String roleId;
    private int locked;
    private Role tempRoles;
    private List<Role> allRoles;
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
